<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateResRemarksTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('res_remarks', function (Blueprint $table) {
            $table->increments('rid');
            $table->integer('created');
            $table->string('des');
            $table->integer('process_id')->index();   //进程id
            $table->integer('users_id')->index();     //操作人id
            $table->integer('resources_id')->index(); //资源关联id
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('res_remarks');
    }
}
